package com.bluemsun.naturallanguageprocessing.service;

import com.bluemsun.naturallanguageprocessing.common.ServerResponse;
import com.bluemsun.naturallanguageprocessing.entity.Question;
import org.apache.catalina.Server;

public  interface IQuestionService {
    //获取热门问题列表title
    ServerResponse<Object> getHotQuestionList(Integer pageSize,Integer pageNum );
    //根据ID获取问题答案
    ServerResponse<Object> getQuestion(Integer id,Integer userId);
    //增加问题
    ServerResponse<Object> addQuestion(Question question);
    //获取每个类别的问题title
    ServerResponse<Object> getClassifyQuestion(Integer classifyId);
    //删除问题
    ServerResponse<Object> deleteQuestion(Integer id);
    //更新问题答案
    ServerResponse<Object> updateQuestion(Question question);
    //问题换一换
    ServerResponse<Object> getQuestionChange();
    //模糊搜索,获取title
    ServerResponse<Object> fuzzySearch(String search);
    //推荐问题
    ServerResponse<Object> searchQuestionsByTag(String search,Integer pageNum,Integer pageSize);
}
